package com.example.tests;

import org.testng.annotations.Test;

public class GroupCreationTests extends BaseTest {
	@Test
	public void testNonEmptyGroupCreation () throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getNavigationHelper().gotoGroupsPage();
		app.getGroupHelper().initGroupCreation();
		GroupData group = new GroupData("group1", "header1", "footer1");
		app.getGroupHelper().fillGroupForm(group);
		app.getGroupHelper().submitGroupCreation();
		app.getGroupHelper().returntoGroupsPage();
	}
	
	@Test
	public void testEmptyGroupCreation () throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getNavigationHelper().gotoGroupsPage();
		app.getGroupHelper().initGroupCreation();
		app.getGroupHelper().fillGroupForm(new GroupData("", "", ""));
		app.getGroupHelper().submitGroupCreation();
		app.getGroupHelper().returntoGroupsPage();
	}
}
